// 初始化测试数据
export const initTestData = () => {
  // 初始化地址数据
  const addresses = uni.getStorageSync('userAddresses') || []
  if (addresses.length === 0) {
    const testData = [
      {
        id: 'addr_1',
        name: '张三',
        phone: '13800138000',
        province: '北京市',
        city: '北京市',
        area: '朝阳区',
        provinceCode: '110000',
        cityCode: '110100',
        areaCode: '110105',
        address: '朝阳区某某街道123号',
        isDefault: true
      },
      {
        id: 'addr_2',
        name: '李四',
        phone: '13900139000',
        province: '上海市',
        city: '上海市',
        area: '浦东新区',
        provinceCode: '310000',
        cityCode: '310100',
        areaCode: '310115',
        address: '浦东新区某某路456号',
        isDefault: false
      }
    ]
    uni.setStorageSync('userAddresses', testData)
  }
}
